package io.renren.modules.bs.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.bs.entity.BsDepartmentEntity;
import io.renren.modules.bs.vo.BsDepartmentTreeVo;

import java.util.List;
import java.util.Map;

/**
 * 部门表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-08-13 22:35:07
 */
public interface BsDepartmentService extends IService<BsDepartmentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void prohibitOrEnable(Integer id, Integer isFrozen);

    void saveModel(BsDepartmentEntity bsDepartment);

    void updateModel(BsDepartmentEntity bsDepartment);

    JSONObject getListAndHospital();

    Integer getExtractableNumber(Long dataValue);

    List<BsDepartmentTreeVo> getTreeData(Long parentId);

    void removeRecords(List<Long> asList);

    List<BsDepartmentEntity> getListByHospitalIds(List<Long> asList);
}

